//
//  SearchCompanyViewController.h
//  MyProject
//
//  Created by 石小强 on 2018/3/27.
//  Copyright © 2018年 yanjiaming. All rights reserved.
//

#import "BaseViewController.h"
#import "CityModel.h"
#import "CompanyModel.h"

typedef void(^CompanyOrCitySelectBlock) (NSString *companyOrCity);

typedef void(^CompanySelectBlock) (CompanyModel *company);
typedef void(^CitySelectBlock) (CityModel *city);

@interface SearchCompanyViewController : BaseViewController<UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate>

/** index == 0: 求职者搜索公司，index == 1: 在职者搜索公司, index == 2:搜索城市 */
@property (nonatomic, assign) NSInteger index;

@property (nonatomic, copy) CompanyOrCitySelectBlock companyOrCityBlock;
@property (nonatomic, copy) CompanySelectBlock companyBlock;
@property (nonatomic, copy) CitySelectBlock cityBlock;

@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end
